/*
 * @Descripttion:
 * @Author: Zhai Penghui
 * @Date: 2021-11-03 15:17:40
 */
import {createRouter,createWebHashHistory } from 'vue-router'
import Layout from "../views/layout/index.vue";
const constantRoutes = [
  {
    path: "/",
    // redirect: "/login",
    component:Layout,
    hidden: true,
  },
  {
    path: "/login",
    name: "login",
    component: () => import("../views/Login.vue"),
    hidden: true,
  },
];

const router = createRouter({
  history: createWebHashHistory(),
  routes:constantRoutes
});


export default router